﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Supermarket.Bll;

namespace Supermarket.Web
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {            
            Label labelCashbox = (Label)LoginViewCashbox.FindControl("LabelCashbox");
            if (labelCashbox != null)
            {
                decimal cashbox = CashboxManager.GetCash();
                
                labelCashbox.Text = String.Format("Каса: {0:0.00} лв.", cashbox);
            }
        }
    }
}
